<template>
  <div class="hall-index">
    <a-menu mode="horizontal" v-model="current" class="menu" >
      <a-menu-item key="lock">
        <router-link to="/logger/lockLogger">操作日志</router-link>
      </a-menu-item>
      <a-menu-item key="state">
        <router-link to="/logger/stateLogger">状态日志</router-link>
      </a-menu-item>
    </a-menu>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
    data() {
        return {
            current: ["lock"],
        }
    },
    mounted() {
        this.$router.push("/logger/lockLogger");
    },
}
</script>

<style scope>
.menu{
    margin-bottom: 20px;
}
</style>